projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a840a6d
)
search entry: Add a style class
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 29 Oct 2015 03:58:39 +0000
(23:58 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 29 Oct 2015 03:58:39 +0000
(23:58 -0400)
There should be little need to have separate styling for search
entries, so a separate name would be a bit overkill.
gtk/gtksearchentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtksearchentry.c
b/gtk/gtksearchentry.c
index 03e7c560c8be4f77968f5bddbd69c3c4b8191bb5..ce38e34843da50c4781c01943f8ef5e16e29600c 100644
(file)
--- a/
gtk/gtksearchentry.c
+++ b/
gtk/gtksearchentry.c
@@
-367,6
+367,8
@@
gtk_search_entry_init (GtkSearchEntry *entry)
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (entry));
if (GTK_IS_ACCESSIBLE (atk_obj))
atk_object_set_name (atk_obj, _("Search"));
+
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), "search");
}
/**